<template>
  <div class="func"> 
    <div class="fill"></div>
    <div class="bigmain">
      <div class="main">
        <div class="title">功能评估</div>
        <div></div>
        <div class="itemlist" >
              <assessment-item >
                <div slot="name">动作评估</div>
                <div v-for="item in funcAction.action" :key="item.id" slot="content" >
                    <div class="title">{{ item.title }}</div>
                    <div class="detail">{{ item.content }}</div>
                </div>
              </assessment-item>

              <assessment-item >
                <div slot="name">姿态评估</div>
                <div v-for="item in funcAction.attitude" :key="item.id" slot="content" >
                    <div class="title">{{ item.title }}</div>
                    <div class="detail">{{ item.content }}</div>
                </div>
              </assessment-item>
              
              <assessment-item >
                <div slot="name">水中运动能力评估</div>
                <div v-for="item in funcAction.ability" :key="item.id" slot="content">
                    <div class="title">{{ item.title }}</div>
                    <div class="detail">{{ item.content }}</div>
                </div>
              </assessment-item>
        </div>
        
      </div>
    </div>
  </div>
</template>

<script>
import AssessmentItem from './AssessmentItem';
  export default {
    props: {
      funcAction: {
        type: Object, 
        default(){
          return {}
        } 
      },
      that:{
        type: Object,
        default(){
          return {}
        } 
      },
    },
    components: {
      AssessmentItem
    },
  }
</script>

<style  scoped>
.fill{
  height: 208px;
  background-color: rgba(255,255,255,0);
}
.func{
  width: 100%;

}
.bigmain{
  width: 100%;
  background-color: #fff;
  border-top-left-radius: 30px; 
}
.main{
  width: 323px;
  margin: 0 auto;

}
.main .title{
  font-size: 18px ;
  font-weight: 600;
  margin: 25px 0;
}
.itemlist{
  display: flex;
  flex-wrap: wrap;
  justify-content:flex-end;
}
</style>